﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WareHouse.Domain.Warehouses
{
    /// <summary>
    /// 库位表
    /// </summary>
    [SugarTable("Location")]
    public class Location : AuditInfo
    {
        /// <summary>
        /// 库位ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long LocationId { get; set; }

        /// <summary>
        /// 库位编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string LocationCode { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>
        [SugarColumn(Length = 50)]
        public string LocationName { get; set; }

        /// <summary>
        /// 库位类型外键ID
        /// </summary>
        public int LocationTypeId { get; set; }

        /// <summary>
        /// 库位面积
        /// </summary>
        public decimal LocationArea { get; set; }

        /// <summary>
        /// 仓库外键ID
        /// </summary>
        public long WarehouseId { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsDisable { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 500)]
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }= DateTime.Now;
    }
}
